<template>
  <div class="page_search search_index">
	<div class="warp">
	  <div class="container">
		<div class="row">
		  <div class="col-12">
			<div class="card_result_search">
			  <div class="title">搜索结果</div>

				<!-- 文章搜索结果 -->
			  <list_result_search
				:list="result_article"
				title="民宿资讯"
				source_table="article"
			  ></list_result_search>


						  <list_result_search
				v-if="$check_action('/ordinary_users/list', 'get')"
				:list="result_ordinary_users_user_name"
				title="普通用户用户姓名"
				source_table="ordinary_users"
			  ></list_result_search>
								  <list_result_search
				v-if="$check_action('/ordinary_users/list', 'get')"
				:list="result_ordinary_users_user_gender"
				title="普通用户用户性别"
				source_table="ordinary_users"
			  ></list_result_search>
												  <list_result_search
				v-if="$check_action('/merchant_users/list', 'get')"
				:list="result_merchant_users_merchant_name"
				title="商家用户商家姓名"
				source_table="merchant_users"
			  ></list_result_search>
								  <list_result_search
				v-if="$check_action('/merchant_users/list', 'get')"
				:list="result_merchant_users_name_of_homestay"
				title="商家用户民宿名称"
				source_table="merchant_users"
			  ></list_result_search>
												  <list_result_search
				v-if="$check_action('/employee_user/list', 'get')"
				:list="result_employee_user_employee_name"
				title="员工用户员工姓名"
				source_table="employee_user"
			  ></list_result_search>
															  <list_result_search
				v-if="$check_action('/room_cleaning/list', 'get')"
				:list="result_room_cleaning_name_of_homestay"
				title="房间打扫民宿名称"
				source_table="room_cleaning"
			  ></list_result_search>
								  <list_result_search
				v-if="$check_action('/room_cleaning/list', 'get')"
				:list="result_room_cleaning_location_of_homestay"
				title="房间打扫民宿位置"
				source_table="room_cleaning"
			  ></list_result_search>
																		  <list_result_search
				v-if="$check_action('/region_name/list', 'get')"
				:list="result_region_name_region_name"
				title="地区名称地区名称"
				source_table="region_name"
			  ></list_result_search>
									  <list_result_search
				v-if="$check_action('/popular_attractions/list', 'get')"
				:list="result_popular_attractions_scenic_spot_name"
				title="热门景点景点名称"
				source_table="popular_attractions"
			  ></list_result_search>
								  <list_result_search
				v-if="$check_action('/popular_attractions/list', 'get')"
				:list="result_popular_attractions_types_of_tourist_attractions"
				title="热门景点景点类型"
				source_table="popular_attractions"
			  ></list_result_search>
																																				  <list_result_search
				v-if="$check_action('/homestay_information/list', 'get')"
				:list="result_homestay_information_types_of_homestays"
				title="民宿信息民宿类型"
				source_table="homestay_information"
			  ></list_result_search>
											  <list_result_search
				v-if="$check_action('/homestay_information/list', 'get')"
				:list="result_homestay_information_parking"
				title="民宿信息停车场"
				source_table="homestay_information"
			  ></list_result_search>
																	  <list_result_search
				v-if="$check_action('/homestay_information/list', 'get')"
				:list="result_homestay_information_location_of_homestay"
				title="民宿信息民宿位置"
				source_table="homestay_information"
			  ></list_result_search>
																					  <list_result_search
				v-if="$check_action('/homestay_orders/list', 'get')"
				:list="result_homestay_orders_name_of_homestay"
				title="民宿订单民宿名称"
				source_table="homestay_orders"
			  ></list_result_search>
																				  <list_result_search
				v-if="$check_action('/homestay_orders/list', 'get')"
				:list="result_homestay_orders_user_name"
				title="民宿订单用户姓名"
				source_table="homestay_orders"
			  ></list_result_search>
																					  <list_result_search
				v-if="$check_action('/cancellation_of_order/list', 'get')"
				:list="result_cancellation_of_order_merchant_name"
				title="取消订单商家姓名"
				source_table="cancellation_of_order"
			  ></list_result_search>
								  <list_result_search
				v-if="$check_action('/cancellation_of_order/list', 'get')"
				:list="result_cancellation_of_order_name_of_homestay"
				title="取消订单民宿名称"
				source_table="cancellation_of_order"
			  ></list_result_search>
																	  <list_result_search
				v-if="$check_action('/cancellation_of_order/list', 'get')"
				:list="result_cancellation_of_order_user_name"
				title="取消订单用户姓名"
				source_table="cancellation_of_order"
			  ></list_result_search>
																								  <list_result_search
				v-if="$check_action('/renewal_order/list', 'get')"
				:list="result_renewal_order_merchant_name"
				title="续房订单商家姓名"
				source_table="renewal_order"
			  ></list_result_search>
								  <list_result_search
				v-if="$check_action('/renewal_order/list', 'get')"
				:list="result_renewal_order_name_of_homestay"
				title="续房订单民宿名称"
				source_table="renewal_order"
			  ></list_result_search>
																	  <list_result_search
				v-if="$check_action('/renewal_order/list', 'get')"
				:list="result_renewal_order_user_name"
				title="续房订单用户姓名"
				source_table="renewal_order"
			  ></list_result_search>
																		  <list_result_search
				v-if="$check_action('/user_evaluate/list', 'get')"
				:list="result_user_evaluate_merchant_name"
				title="用户评价商家姓名"
				source_table="user_evaluate"
			  ></list_result_search>
								  <list_result_search
				v-if="$check_action('/user_evaluate/list', 'get')"
				:list="result_user_evaluate_name_of_homestay"
				title="用户评价民宿名称"
				source_table="user_evaluate"
			  ></list_result_search>
											  <list_result_search
				v-if="$check_action('/user_evaluate/list', 'get')"
				:list="result_user_evaluate_user_name"
				title="用户评价用户姓名"
				source_table="user_evaluate"
			  ></list_result_search>
															  <list_result_search
				v-if="$check_action('/homestay_and_catering/list', 'get')"
				:list="result_homestay_and_catering_merchant_name"
				title="民宿餐饮商家姓名"
				source_table="homestay_and_catering"
			  ></list_result_search>
								  <list_result_search
				v-if="$check_action('/homestay_and_catering/list', 'get')"
				:list="result_homestay_and_catering_name_of_homestay"
				title="民宿餐饮民宿名称"
				source_table="homestay_and_catering"
			  ></list_result_search>
								  <list_result_search
				v-if="$check_action('/homestay_and_catering/list', 'get')"
				:list="result_homestay_and_catering_food_name"
				title="民宿餐饮美食名称"
				source_table="homestay_and_catering"
			  ></list_result_search>
								  <list_result_search
				v-if="$check_action('/homestay_and_catering/list', 'get')"
				:list="result_homestay_and_catering_delicious_taste"
				title="民宿餐饮美食口味"
				source_table="homestay_and_catering"
			  ></list_result_search>
																					  <list_result_search
				v-if="$check_action('/merchant_billing/list', 'get')"
				:list="result_merchant_billing_merchant_name"
				title="商家账单商家姓名"
				source_table="merchant_billing"
			  ></list_result_search>
								  <list_result_search
				v-if="$check_action('/merchant_billing/list', 'get')"
				:list="result_merchant_billing_name_of_homestay"
				title="商家账单民宿名称"
				source_table="merchant_billing"
			  ></list_result_search>
																								  <list_result_search
				v-if="$check_action('/catering_orders/list', 'get')"
				:list="result_catering_orders_name_of_homestay"
				title="餐饮订单民宿名称"
				source_table="catering_orders"
			  ></list_result_search>
								  <list_result_search
				v-if="$check_action('/catering_orders/list', 'get')"
				:list="result_catering_orders_food_name"
				title="餐饮订单美食名称"
				source_table="catering_orders"
			  ></list_result_search>
														  <list_result_search
				v-if="$check_action('/catering_orders/list', 'get')"
				:list="result_catering_orders_user_name"
				title="餐饮订单用户姓名"
				source_table="catering_orders"
			  ></list_result_search>
																					</div>
		  </div>
		</div>
	  </div>
	</div>
  </div>
</template>

<script>
import mixin from "../../mixins/page.js";
import list_result_search from "../../components/diy/list_result_search.vue";

export default {
  mixins: [mixin],
  data() {
	return {
	  "query": {
		word: "",
	  },
	  "result_article": [],
						"result_ordinary_users_user_name":[],
								"result_ordinary_users_user_gender":[],
												"result_merchant_users_merchant_name":[],
								"result_merchant_users_name_of_homestay":[],
												"result_employee_user_employee_name":[],
															"result_room_cleaning_name_of_homestay":[],
								"result_room_cleaning_location_of_homestay":[],
																		"result_region_name_region_name":[],
									"result_popular_attractions_scenic_spot_name":[],
								"result_popular_attractions_types_of_tourist_attractions":[],
																																				"result_homestay_information_types_of_homestays":[],
											"result_homestay_information_parking":[],
																	"result_homestay_information_location_of_homestay":[],
																					"result_homestay_orders_name_of_homestay":[],
																				"result_homestay_orders_user_name":[],
																					"result_cancellation_of_order_merchant_name":[],
								"result_cancellation_of_order_name_of_homestay":[],
																	"result_cancellation_of_order_user_name":[],
																								"result_renewal_order_merchant_name":[],
								"result_renewal_order_name_of_homestay":[],
																	"result_renewal_order_user_name":[],
																		"result_user_evaluate_merchant_name":[],
								"result_user_evaluate_name_of_homestay":[],
											"result_user_evaluate_user_name":[],
															"result_homestay_and_catering_merchant_name":[],
								"result_homestay_and_catering_name_of_homestay":[],
								"result_homestay_and_catering_food_name":[],
								"result_homestay_and_catering_delicious_taste":[],
																					"result_merchant_billing_merchant_name":[],
								"result_merchant_billing_name_of_homestay":[],
																								"result_catering_orders_name_of_homestay":[],
								"result_catering_orders_food_name":[],
														"result_catering_orders_user_name":[],
																			};
  },
  methods: {
	/**
	 * 获取文章
	 */
	get_article() {
	  this.$get("~/api/article/get_list?like=0", { page: 1, size: 10, title: this.query.word }, (json) => {
		if (json.result) {
		  this.result_article = json.result.list;
		}
	  });
	},

				/**
	 * 获取user_name
	 */
	get_ordinary_users_user_name(){
		let url = "~/api/ordinary_users/get_list?like=0";
				this.$get(url, { page: 1, size: 10, "user_name": this.query.word }, (json) => {
		  if (json.result) {
			var result_ordinary_users_user_name = json.result.list;
			result_ordinary_users_user_name.map(o => o.title = o['user_name'])
	  			this.result_ordinary_users_user_name = result_ordinary_users_user_name
		 	}
		});
	},
						/**
	 * 获取user_gender
	 */
	get_ordinary_users_user_gender(){
		let url = "~/api/ordinary_users/get_list?like=0";
				this.$get(url, { page: 1, size: 10, "user_gender": this.query.word }, (json) => {
		  if (json.result) {
			var result_ordinary_users_user_gender = json.result.list;
			result_ordinary_users_user_gender.map(o => o.title = o['user_gender'])
	  			this.result_ordinary_users_user_gender = result_ordinary_users_user_gender
		 	}
		});
	},
										/**
	 * 获取merchant_name
	 */
	get_merchant_users_merchant_name(){
		let url = "~/api/merchant_users/get_list?like=0";
				url = url+"&examine_state=已通过";
				this.$get(url, { page: 1, size: 10, "merchant_name": this.query.word }, (json) => {
		  if (json.result) {
			var result_merchant_users_merchant_name = json.result.list;
			result_merchant_users_merchant_name.map(o => o.title = o['merchant_name'])
	  			this.result_merchant_users_merchant_name = result_merchant_users_merchant_name
		 	}
		});
	},
						/**
	 * 获取name_of_homestay
	 */
	get_merchant_users_name_of_homestay(){
		let url = "~/api/merchant_users/get_list?like=0";
				url = url+"&examine_state=已通过";
				this.$get(url, { page: 1, size: 10, "name_of_homestay": this.query.word }, (json) => {
		  if (json.result) {
			var result_merchant_users_name_of_homestay = json.result.list;
			result_merchant_users_name_of_homestay.map(o => o.title = o['name_of_homestay'])
	  			this.result_merchant_users_name_of_homestay = result_merchant_users_name_of_homestay
		 	}
		});
	},
										/**
	 * 获取employee_name
	 */
	get_employee_user_employee_name(){
		let url = "~/api/employee_user/get_list?like=0";
				this.$get(url, { page: 1, size: 10, "employee_name": this.query.word }, (json) => {
		  if (json.result) {
			var result_employee_user_employee_name = json.result.list;
			result_employee_user_employee_name.map(o => o.title = o['employee_name'])
	  			this.result_employee_user_employee_name = result_employee_user_employee_name
		 	}
		});
	},
													/**
	 * 获取name_of_homestay
	 */
	get_room_cleaning_name_of_homestay(){
		let url = "~/api/room_cleaning/get_list?like=0";
				this.$get(url, { page: 1, size: 10, "name_of_homestay": this.query.word }, (json) => {
		  if (json.result) {
			var result_room_cleaning_name_of_homestay = json.result.list;
			result_room_cleaning_name_of_homestay.map(o => o.title = o['name_of_homestay'])
	  			this.result_room_cleaning_name_of_homestay = result_room_cleaning_name_of_homestay
		 	}
		});
	},
						/**
	 * 获取location_of_homestay
	 */
	get_room_cleaning_location_of_homestay(){
		let url = "~/api/room_cleaning/get_list?like=0";
				this.$get(url, { page: 1, size: 10, "location_of_homestay": this.query.word }, (json) => {
		  if (json.result) {
			var result_room_cleaning_location_of_homestay = json.result.list;
			result_room_cleaning_location_of_homestay.map(o => o.title = o['location_of_homestay'])
	  			this.result_room_cleaning_location_of_homestay = result_room_cleaning_location_of_homestay
		 	}
		});
	},
																/**
	 * 获取region_name
	 */
	get_region_name_region_name(){
		let url = "~/api/region_name/get_list?like=0";
				this.$get(url, { page: 1, size: 10, "region_name": this.query.word }, (json) => {
		  if (json.result) {
			var result_region_name_region_name = json.result.list;
			result_region_name_region_name.map(o => o.title = o['region_name'])
	  			this.result_region_name_region_name = result_region_name_region_name
		 	}
		});
	},
							/**
	 * 获取scenic_spot_name
	 */
	get_popular_attractions_scenic_spot_name(){
		let url = "~/api/popular_attractions/get_list?like=0";
				this.$get(url, { page: 1, size: 10, "scenic_spot_name": this.query.word }, (json) => {
		  if (json.result) {
			var result_popular_attractions_scenic_spot_name = json.result.list;
			result_popular_attractions_scenic_spot_name.map(o => o.title = o['scenic_spot_name'])
	  			this.result_popular_attractions_scenic_spot_name = result_popular_attractions_scenic_spot_name
		 	}
		});
	},
						/**
	 * 获取types_of_tourist_attractions
	 */
	get_popular_attractions_types_of_tourist_attractions(){
		let url = "~/api/popular_attractions/get_list?like=0";
				this.$get(url, { page: 1, size: 10, "types_of_tourist_attractions": this.query.word }, (json) => {
		  if (json.result) {
			var result_popular_attractions_types_of_tourist_attractions = json.result.list;
			result_popular_attractions_types_of_tourist_attractions.map(o => o.title = o['types_of_tourist_attractions'])
	  			this.result_popular_attractions_types_of_tourist_attractions = result_popular_attractions_types_of_tourist_attractions
		 	}
		});
	},
																																		/**
	 * 获取types_of_homestays
	 */
	get_homestay_information_types_of_homestays(){
		let url = "~/api/homestay_information/get_list?like=0";
				url = url+"&examine_state=已通过";
				this.$get(url, { page: 1, size: 10, "types_of_homestays": this.query.word }, (json) => {
		  if (json.result) {
			var result_homestay_information_types_of_homestays = json.result.list;
			result_homestay_information_types_of_homestays.map(o => o.title = o['types_of_homestays'])
	  			this.result_homestay_information_types_of_homestays = result_homestay_information_types_of_homestays
		 	}
		});
	},
									/**
	 * 获取parking
	 */
	get_homestay_information_parking(){
		let url = "~/api/homestay_information/get_list?like=0";
				url = url+"&examine_state=已通过";
				this.$get(url, { page: 1, size: 10, "parking": this.query.word }, (json) => {
		  if (json.result) {
			var result_homestay_information_parking = json.result.list;
			result_homestay_information_parking.map(o => o.title = o['parking'])
	  			this.result_homestay_information_parking = result_homestay_information_parking
		 	}
		});
	},
															/**
	 * 获取location_of_homestay
	 */
	get_homestay_information_location_of_homestay(){
		let url = "~/api/homestay_information/get_list?like=0";
				url = url+"&examine_state=已通过";
				this.$get(url, { page: 1, size: 10, "location_of_homestay": this.query.word }, (json) => {
		  if (json.result) {
			var result_homestay_information_location_of_homestay = json.result.list;
			result_homestay_information_location_of_homestay.map(o => o.title = o['location_of_homestay'])
	  			this.result_homestay_information_location_of_homestay = result_homestay_information_location_of_homestay
		 	}
		});
	},
																			/**
	 * 获取name_of_homestay
	 */
	get_homestay_orders_name_of_homestay(){
		let url = "~/api/homestay_orders/get_list?like=0";
				this.$get(url, { page: 1, size: 10, "name_of_homestay": this.query.word }, (json) => {
		  if (json.result) {
			var result_homestay_orders_name_of_homestay = json.result.list;
			result_homestay_orders_name_of_homestay.map(o => o.title = o['name_of_homestay'])
	  			this.result_homestay_orders_name_of_homestay = result_homestay_orders_name_of_homestay
		 	}
		});
	},
																		/**
	 * 获取user_name
	 */
	get_homestay_orders_user_name(){
		let url = "~/api/homestay_orders/get_list?like=0";
				this.$get(url, { page: 1, size: 10, "user_name": this.query.word }, (json) => {
		  if (json.result) {
			var result_homestay_orders_user_name = json.result.list;
			result_homestay_orders_user_name.map(o => o.title = o['user_name'])
	  			this.result_homestay_orders_user_name = result_homestay_orders_user_name
		 	}
		});
	},
																			/**
	 * 获取merchant_name
	 */
	get_cancellation_of_order_merchant_name(){
		let url = "~/api/cancellation_of_order/get_list?like=0";
				this.$get(url, { page: 1, size: 10, "merchant_name": this.query.word }, (json) => {
		  if (json.result) {
			var result_cancellation_of_order_merchant_name = json.result.list;
			result_cancellation_of_order_merchant_name.map(o => o.title = o['merchant_name'])
	  			this.result_cancellation_of_order_merchant_name = result_cancellation_of_order_merchant_name
		 	}
		});
	},
						/**
	 * 获取name_of_homestay
	 */
	get_cancellation_of_order_name_of_homestay(){
		let url = "~/api/cancellation_of_order/get_list?like=0";
				this.$get(url, { page: 1, size: 10, "name_of_homestay": this.query.word }, (json) => {
		  if (json.result) {
			var result_cancellation_of_order_name_of_homestay = json.result.list;
			result_cancellation_of_order_name_of_homestay.map(o => o.title = o['name_of_homestay'])
	  			this.result_cancellation_of_order_name_of_homestay = result_cancellation_of_order_name_of_homestay
		 	}
		});
	},
															/**
	 * 获取user_name
	 */
	get_cancellation_of_order_user_name(){
		let url = "~/api/cancellation_of_order/get_list?like=0";
				this.$get(url, { page: 1, size: 10, "user_name": this.query.word }, (json) => {
		  if (json.result) {
			var result_cancellation_of_order_user_name = json.result.list;
			result_cancellation_of_order_user_name.map(o => o.title = o['user_name'])
	  			this.result_cancellation_of_order_user_name = result_cancellation_of_order_user_name
		 	}
		});
	},
																						/**
	 * 获取merchant_name
	 */
	get_renewal_order_merchant_name(){
		let url = "~/api/renewal_order/get_list?like=0";
				this.$get(url, { page: 1, size: 10, "merchant_name": this.query.word }, (json) => {
		  if (json.result) {
			var result_renewal_order_merchant_name = json.result.list;
			result_renewal_order_merchant_name.map(o => o.title = o['merchant_name'])
	  			this.result_renewal_order_merchant_name = result_renewal_order_merchant_name
		 	}
		});
	},
						/**
	 * 获取name_of_homestay
	 */
	get_renewal_order_name_of_homestay(){
		let url = "~/api/renewal_order/get_list?like=0";
				this.$get(url, { page: 1, size: 10, "name_of_homestay": this.query.word }, (json) => {
		  if (json.result) {
			var result_renewal_order_name_of_homestay = json.result.list;
			result_renewal_order_name_of_homestay.map(o => o.title = o['name_of_homestay'])
	  			this.result_renewal_order_name_of_homestay = result_renewal_order_name_of_homestay
		 	}
		});
	},
															/**
	 * 获取user_name
	 */
	get_renewal_order_user_name(){
		let url = "~/api/renewal_order/get_list?like=0";
				this.$get(url, { page: 1, size: 10, "user_name": this.query.word }, (json) => {
		  if (json.result) {
			var result_renewal_order_user_name = json.result.list;
			result_renewal_order_user_name.map(o => o.title = o['user_name'])
	  			this.result_renewal_order_user_name = result_renewal_order_user_name
		 	}
		});
	},
																/**
	 * 获取merchant_name
	 */
	get_user_evaluate_merchant_name(){
		let url = "~/api/user_evaluate/get_list?like=0";
				this.$get(url, { page: 1, size: 10, "merchant_name": this.query.word }, (json) => {
		  if (json.result) {
			var result_user_evaluate_merchant_name = json.result.list;
			result_user_evaluate_merchant_name.map(o => o.title = o['merchant_name'])
	  			this.result_user_evaluate_merchant_name = result_user_evaluate_merchant_name
		 	}
		});
	},
						/**
	 * 获取name_of_homestay
	 */
	get_user_evaluate_name_of_homestay(){
		let url = "~/api/user_evaluate/get_list?like=0";
				this.$get(url, { page: 1, size: 10, "name_of_homestay": this.query.word }, (json) => {
		  if (json.result) {
			var result_user_evaluate_name_of_homestay = json.result.list;
			result_user_evaluate_name_of_homestay.map(o => o.title = o['name_of_homestay'])
	  			this.result_user_evaluate_name_of_homestay = result_user_evaluate_name_of_homestay
		 	}
		});
	},
									/**
	 * 获取user_name
	 */
	get_user_evaluate_user_name(){
		let url = "~/api/user_evaluate/get_list?like=0";
				this.$get(url, { page: 1, size: 10, "user_name": this.query.word }, (json) => {
		  if (json.result) {
			var result_user_evaluate_user_name = json.result.list;
			result_user_evaluate_user_name.map(o => o.title = o['user_name'])
	  			this.result_user_evaluate_user_name = result_user_evaluate_user_name
		 	}
		});
	},
													/**
	 * 获取merchant_name
	 */
	get_homestay_and_catering_merchant_name(){
		let url = "~/api/homestay_and_catering/get_list?like=0";
				this.$get(url, { page: 1, size: 10, "merchant_name": this.query.word }, (json) => {
		  if (json.result) {
			var result_homestay_and_catering_merchant_name = json.result.list;
			result_homestay_and_catering_merchant_name.map(o => o.title = o['merchant_name'])
	  			this.result_homestay_and_catering_merchant_name = result_homestay_and_catering_merchant_name
		 	}
		});
	},
						/**
	 * 获取name_of_homestay
	 */
	get_homestay_and_catering_name_of_homestay(){
		let url = "~/api/homestay_and_catering/get_list?like=0";
				this.$get(url, { page: 1, size: 10, "name_of_homestay": this.query.word }, (json) => {
		  if (json.result) {
			var result_homestay_and_catering_name_of_homestay = json.result.list;
			result_homestay_and_catering_name_of_homestay.map(o => o.title = o['name_of_homestay'])
	  			this.result_homestay_and_catering_name_of_homestay = result_homestay_and_catering_name_of_homestay
		 	}
		});
	},
						/**
	 * 获取food_name
	 */
	get_homestay_and_catering_food_name(){
		let url = "~/api/homestay_and_catering/get_list?like=0";
				this.$get(url, { page: 1, size: 10, "food_name": this.query.word }, (json) => {
		  if (json.result) {
			var result_homestay_and_catering_food_name = json.result.list;
			result_homestay_and_catering_food_name.map(o => o.title = o['food_name'])
	  			this.result_homestay_and_catering_food_name = result_homestay_and_catering_food_name
		 	}
		});
	},
						/**
	 * 获取delicious_taste
	 */
	get_homestay_and_catering_delicious_taste(){
		let url = "~/api/homestay_and_catering/get_list?like=0";
				this.$get(url, { page: 1, size: 10, "delicious_taste": this.query.word }, (json) => {
		  if (json.result) {
			var result_homestay_and_catering_delicious_taste = json.result.list;
			result_homestay_and_catering_delicious_taste.map(o => o.title = o['delicious_taste'])
	  			this.result_homestay_and_catering_delicious_taste = result_homestay_and_catering_delicious_taste
		 	}
		});
	},
																			/**
	 * 获取merchant_name
	 */
	get_merchant_billing_merchant_name(){
		let url = "~/api/merchant_billing/get_list?like=0";
				this.$get(url, { page: 1, size: 10, "merchant_name": this.query.word }, (json) => {
		  if (json.result) {
			var result_merchant_billing_merchant_name = json.result.list;
			result_merchant_billing_merchant_name.map(o => o.title = o['merchant_name'])
	  			this.result_merchant_billing_merchant_name = result_merchant_billing_merchant_name
		 	}
		});
	},
						/**
	 * 获取name_of_homestay
	 */
	get_merchant_billing_name_of_homestay(){
		let url = "~/api/merchant_billing/get_list?like=0";
				this.$get(url, { page: 1, size: 10, "name_of_homestay": this.query.word }, (json) => {
		  if (json.result) {
			var result_merchant_billing_name_of_homestay = json.result.list;
			result_merchant_billing_name_of_homestay.map(o => o.title = o['name_of_homestay'])
	  			this.result_merchant_billing_name_of_homestay = result_merchant_billing_name_of_homestay
		 	}
		});
	},
																						/**
	 * 获取name_of_homestay
	 */
	get_catering_orders_name_of_homestay(){
		let url = "~/api/catering_orders/get_list?like=0";
				this.$get(url, { page: 1, size: 10, "name_of_homestay": this.query.word }, (json) => {
		  if (json.result) {
			var result_catering_orders_name_of_homestay = json.result.list;
			result_catering_orders_name_of_homestay.map(o => o.title = o['name_of_homestay'])
	  			this.result_catering_orders_name_of_homestay = result_catering_orders_name_of_homestay
		 	}
		});
	},
						/**
	 * 获取food_name
	 */
	get_catering_orders_food_name(){
		let url = "~/api/catering_orders/get_list?like=0";
				this.$get(url, { page: 1, size: 10, "food_name": this.query.word }, (json) => {
		  if (json.result) {
			var result_catering_orders_food_name = json.result.list;
			result_catering_orders_food_name.map(o => o.title = o['food_name'])
	  			this.result_catering_orders_food_name = result_catering_orders_food_name
		 	}
		});
	},
												/**
	 * 获取user_name
	 */
	get_catering_orders_user_name(){
		let url = "~/api/catering_orders/get_list?like=0";
				this.$get(url, { page: 1, size: 10, "user_name": this.query.word }, (json) => {
		  if (json.result) {
			var result_catering_orders_user_name = json.result.list;
			result_catering_orders_user_name.map(o => o.title = o['user_name'])
	  			this.result_catering_orders_user_name = result_catering_orders_user_name
		 	}
		});
	},
																		
  },
  components: { list_result_search },
	created(){
    this.query.word = this.$route.query.word || "";
  },
  mounted() {
	this.get_article();
					this.get_ordinary_users_user_name();
							this.get_ordinary_users_user_gender();
											this.get_merchant_users_merchant_name();
							this.get_merchant_users_name_of_homestay();
											this.get_employee_user_employee_name();
														this.get_room_cleaning_name_of_homestay();
							this.get_room_cleaning_location_of_homestay();
																	this.get_region_name_region_name();
								this.get_popular_attractions_scenic_spot_name();
							this.get_popular_attractions_types_of_tourist_attractions();
																																			this.get_homestay_information_types_of_homestays();
										this.get_homestay_information_parking();
																this.get_homestay_information_location_of_homestay();
																				this.get_homestay_orders_name_of_homestay();
																			this.get_homestay_orders_user_name();
																				this.get_cancellation_of_order_merchant_name();
							this.get_cancellation_of_order_name_of_homestay();
																this.get_cancellation_of_order_user_name();
																							this.get_renewal_order_merchant_name();
							this.get_renewal_order_name_of_homestay();
																this.get_renewal_order_user_name();
																	this.get_user_evaluate_merchant_name();
							this.get_user_evaluate_name_of_homestay();
										this.get_user_evaluate_user_name();
														this.get_homestay_and_catering_merchant_name();
							this.get_homestay_and_catering_name_of_homestay();
							this.get_homestay_and_catering_food_name();
							this.get_homestay_and_catering_delicious_taste();
																				this.get_merchant_billing_merchant_name();
							this.get_merchant_billing_name_of_homestay();
																							this.get_catering_orders_name_of_homestay();
							this.get_catering_orders_food_name();
													this.get_catering_orders_user_name();
																		  },
  watch: {
	$route() {
	  $.push(this.query, this.$route.query);
	  this.get_article();
				  this.get_ordinary_users_user_name();
						  this.get_ordinary_users_user_gender();
										  this.get_merchant_users_merchant_name();
						  this.get_merchant_users_name_of_homestay();
										  this.get_employee_user_employee_name();
													  this.get_room_cleaning_name_of_homestay();
						  this.get_room_cleaning_location_of_homestay();
																  this.get_region_name_region_name();
							  this.get_popular_attractions_scenic_spot_name();
						  this.get_popular_attractions_types_of_tourist_attractions();
																																		  this.get_homestay_information_types_of_homestays();
									  this.get_homestay_information_parking();
															  this.get_homestay_information_location_of_homestay();
																			  this.get_homestay_orders_name_of_homestay();
																		  this.get_homestay_orders_user_name();
																			  this.get_cancellation_of_order_merchant_name();
						  this.get_cancellation_of_order_name_of_homestay();
															  this.get_cancellation_of_order_user_name();
																						  this.get_renewal_order_merchant_name();
						  this.get_renewal_order_name_of_homestay();
															  this.get_renewal_order_user_name();
																  this.get_user_evaluate_merchant_name();
						  this.get_user_evaluate_name_of_homestay();
									  this.get_user_evaluate_user_name();
													  this.get_homestay_and_catering_merchant_name();
						  this.get_homestay_and_catering_name_of_homestay();
						  this.get_homestay_and_catering_food_name();
						  this.get_homestay_and_catering_delicious_taste();
																			  this.get_merchant_billing_merchant_name();
						  this.get_merchant_billing_name_of_homestay();
																						  this.get_catering_orders_name_of_homestay();
						  this.get_catering_orders_food_name();
												  this.get_catering_orders_user_name();
																			},
  },
};
</script>

<style scoped>
.card_search {
  text-align: center;
}
.card_result_search>.title {
  text-align: center;
  padding: 10px 0;
}
</style>
